﻿namespace WebAPI.Common
{
    public class ResultMsg
    {
        /// <summary>
        /// ResultCode
        /// </summary>
        public int ResultCode { get; set; }
        /// <summary>
        /// ResultMessage
        /// </summary>
        public string ResultMessage { get; set; }
        /// <summary>
        /// ReturnData
        /// </summary>
        public object data { get; set; }

        public ResultMsg SetResultMsg(int code, string msg, object datas)
        {
            ResultCode = code;
            ResultMessage = msg;
            data = datas;
            return this;
        }
    }
}
